<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/kernel/qaction.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QAction</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QAction</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qaction.html">QAction class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qaction-qt3.html#QAction-4">QAction</a></b> ( QObject * <i>parent</i>, const char * <i>name</i> )</li>
<li><div class="fn"/><b><a href="qaction-qt3.html#QAction-5">QAction</a></b> ( const QString &amp; <i>text</i>, const QKeySequence &amp; <i>shortcut</i>, QObject * <i>parent</i>, const char * <i>name</i> )</li>
<li><div class="fn"/><b><a href="qaction-qt3.html#QAction-6">QAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, const QKeySequence &amp; <i>shortcut</i>, QObject * <i>parent</i>, const char * <i>name</i> )</li>
<li><div class="fn"/>QKeySequence <b><a href="qaction-qt3.html#accel">accel</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qaction-qt3.html#addTo">addTo</a></b> ( QWidget * <i>w</i> )</li>
<li><div class="fn"/>QIcon <b><a href="qaction-qt3.html#iconSet">iconSet</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qaction-qt3.html#isOn">isOn</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qaction-qt3.html#isToggleAction">isToggleAction</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qaction-qt3.html#menuText">menuText</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qaction-qt3.html#removeFrom">removeFrom</a></b> ( QWidget * <i>w</i> )</li>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#setAccel">setAccel</a></b> ( const QKeySequence &amp; <i>shortcut</i> )</li>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#setIconSet">setIconSet</a></b> ( const QIcon &amp; <i>i</i> )</li>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#setMenuText">setMenuText</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#setToggleAction">setToggleAction</a></b> ( bool <i>b</i> )</li>
</ul>
<ul>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#setOn">setOn</a></b> ( bool <i>b</i> )</li>
</ul>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qaction-qt3.html#activated">activated</a></b> ( int <i>i</i> = 0 )</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QAction-4"></a>QAction::QAction ( <a href="qobject.html">QObject</a> * <i>parent</i>, const char * <i>name</i> )</h3>
<p>Use one of the <a href="qaction.html">QAction</a> constructors that doesn't take a <i>name</i> argument and call <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="QAction-5"></a>QAction::QAction ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i>, <a href="qobject.html">QObject</a> * <i>parent</i>, const char * <i>name</i> )</h3>
<p>Use one of the <a href="qaction.html">QAction</a> constructors that doesn't take a <i>name</i> argument and call <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="QAction-6"></a>QAction::QAction ( const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i>, <a href="qobject.html">QObject</a> * <i>parent</i>, const char * <i>name</i> )</h3>
<p>Use one of the <a href="qaction.html">QAction</a> constructors that doesn't take a <i>name</i> argument and call <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="accel"></a><a href="qkeysequence.html">QKeySequence</a> QAction::accel () const</h3>
<p>Use <a href="qaction.html#shortcut-prop">shortcut</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#setAccel">setAccel</a>().</p>
<h3 class="fn"><a name="activated"></a>void QAction::activated ( int <i>i</i> = 0 )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Use <a href="qaction.html#triggered">triggered</a>() instead.</p>
<h3 class="fn"><a name="addTo"></a>bool QAction::addTo ( <a href="qwidget.html">QWidget</a> * <i>w</i> )</h3>
<p>Use <a href="qwidget.html#addAction">QWidget::addAction</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> action-&gt;addTo(widget);</font></pre>
<p>you can rewrite it as</p>
<pre> widget-&gt;addAction(action);</pre>
<h3 class="fn"><a name="iconSet"></a><a href="qicon.html">QIcon</a> QAction::iconSet () const</h3>
<p>Use <a href="qaction.html#icon-prop">icon</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#setIconSet">setIconSet</a>().</p>
<h3 class="fn"><a name="isOn"></a>bool QAction::isOn () const</h3>
<p>Use <a href="qaction.html#checked-prop">isChecked</a>() instead.</p>
<h3 class="fn"><a name="isToggleAction"></a>bool QAction::isToggleAction () const</h3>
<p>Use <a href="qaction.html#checkable-prop">isCheckable</a>() instead.</p>
<h3 class="fn"><a name="menuText"></a><a href="qstring.html">QString</a> QAction::menuText () const</h3>
<p>Use <a href="qaction.html#text-prop">text</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#setMenuText">setMenuText</a>().</p>
<h3 class="fn"><a name="removeFrom"></a>bool QAction::removeFrom ( <a href="qwidget.html">QWidget</a> * <i>w</i> )</h3>
<p>Use <a href="qwidget.html#removeAction">QWidget::removeAction</a>() instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> action-&gt;removeFrom(widget);</font></pre>
<p>you can rewrite it as</p>
<pre> widget-&gt;removeAction(action);</pre>
<h3 class="fn"><a name="setAccel"></a>void QAction::setAccel ( const <a href="qkeysequence.html">QKeySequence</a> &amp; <i>shortcut</i> )</h3>
<p>Use <a href="qaction.html#shortcut-prop">setShortcut</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#accel">accel</a>().</p>
<h3 class="fn"><a name="setIconSet"></a>void QAction::setIconSet ( const <a href="qicon.html">QIcon</a> &amp; <i>i</i> )</h3>
<p>Use <a href="qaction.html#icon-prop">setIcon</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#iconSet">iconSet</a>().</p>
<h3 class="fn"><a name="setMenuText"></a>void QAction::setMenuText ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Use <a href="qaction.html#text-prop">setText</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#menuText">menuText</a>().</p>
<h3 class="fn"><a name="setOn"></a>void QAction::setOn ( bool <i>b</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use <a href="qaction.html#checked-prop">setChecked</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#isOn">isOn</a>().</p>
<h3 class="fn"><a name="setToggleAction"></a>void QAction::setToggleAction ( bool <i>b</i> )</h3>
<p>Use <a href="qaction.html#checkable-prop">setCheckable</a>() instead.</p>
<p>See also <a href="qaction-qt3.html#isToggleAction">isToggleAction</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
